package com.luxk.db.common;

import com.luxk.db.lock.LockMode;

public interface ObjectCache {
	
	public String getName();
	public void load() throws ImpactException;
	public void put(int id1, int id2, Object obj);

	public Object get(int id1, int id2);
	public Object search(Object cond);
	
	public Object getLocked(int id1, int id2, LockMode mode);
	public Object searchLocked(Object cond, LockMode mode);
	public void unlock(int id1, int id2);
	
	public Object refresh(int id1, int id2);
	public Object invalidate(int id1, int id2);
	public void invalidate();
}
